package jxgcxy.com;

public class Cube {
    int  length;
    int  wide;
    int  height;
    String color;

    public Cube() {
    }

    public Cube(int length, int wide, int height, String color) {
        this.length = length;
        this.wide = wide;
        this.height = height;
        this.color = color;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getWide() {
        return wide;
    }

    public void setWide(int wide) {
        this.wide = wide;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

     public void Volume(){
       int v = length*wide*height;
       System.out.println("体积是："+v);
      }

}
